
class Point{
    public int x;
    public int y;
    public Point(int x,int y){
        this.x = x;
        this.y = y;
    }
}
class PointFactory{
    public static Point makePointByXY(int x,int y){
        return new Point(x,y);
    }
    public static Point makePointByRA(int r,int a){
        return new Point(r,a);
    }

}
public class ThreadDemo6 {
    public static void main(String[] args) {
        Point point = PointFactory.makePointByRA(3,4);
    }

}
